package com.wdnmd.quickceshi.config;

import com.wdnmd.quickceshi.service.HelloService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyAppConfig {

    //将方法的返回值添加到spring容器，方法名就是bean的id
    @Bean
    public HelloService helloService(){
        return new HelloService();
    }
}
